<?php 
$seitcm_courses_module = isset($_GET['module']) ? $_GET['module'] : 'list';
switch ($seitcm_courses_module) {
	case 'list':
		if ( !(current_user_can( 'seitcm_courses_list' ))){
			wp_die( __( 'SEICM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_courses_listtable_view.php';
		break;
	case 'add':
		if ( !(current_user_can( 'seitcm_courses_update' ))){
			wp_die( __( 'SEICM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_courses_addnew_view.php';
		break;
	case 'update':
		if ( !(current_user_can( 'seitcm_courses_update' ))){
			wp_die( __( 'SEICM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_courses_update_view.php';
		break;
	case 'detail':
		if ( !(current_user_can( 'seitcm_courses_list' ))){
			wp_die( __( 'SEICM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_courses_detail_view.php';
		break;
	case 'feeshistory':
		if ( !(current_user_can( 'seitcm_courses_list' ))){
			wp_die( __( 'SEICM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_courses_feeshistory_vew.php';
		break;
	case 'curriculum':
		if ( !(current_user_can( 'seitcm_curriculum_list' ))){
			wp_die( __( 'SEICM: You do not have sufficient permissions to access this page.' ) );
		}
		require_once 'seitcm_courses_curriculum_view.php';
		break;
}
?>